package cn.tedu.overhaul.management.dto.persist.repository;

import cn.tedu.overhaul.management.pojo.dto.OverhaulRentUpdateAllDTO;
import cn.tedu.overhaul.management.pojo.dto.OverhaulRentUpdateDTO;
import cn.tedu.overhaul.management.pojo.entity.Overhaul;
import cn.tedu.overhaul.management.pojo.entity.OverhaulRent;
import cn.tedu.overhaul.management.pojo.vo.MaintainStandardVO;
import cn.tedu.overhaul.management.pojo.vo.MaintainVO;
import cn.tedu.overhaul.management.pojo.vo.RentOriginalVO;
import cn.tedu.overhaul.management.pojo.vo.RentVO;
import cn.tedu.rtms.commons.pojo.vo.PageData;
import org.springframework.transaction.annotation.Transactional;



public interface IOverhaulRentRepository {
    //查询检修记录表, pageNum  页码,pageSize 每页记录数
    PageData<RentVO> selectRent(Integer pageNum, Integer pageSize);

    Long selectByName(String name);

    int insert(OverhaulRent overhaulRent);

    //归还工具
    int updateEndTime(Long id);

    //根据ID修改面板查询检修记录
    RentOriginalVO getStandardById(Long id);

    //根据id删除检修记录数据
    int deleteById(Long id);

    //根据ID修改借用记录
    int update(OverhaulRentUpdateAllDTO overhaulRentUpdateAllDTO);
}
